<html>
<head>
<title>Welcome to DORS</title>
<!--script src="lib/jquery/jquery-1.3.2.js"--><!--/script-->
<!--script src="http://code.google.com/apis/gears/gears_init.js"--><!--/script-->
<!--script src="js/mainPage.js"--> <!--/script-->
<script type="text/javascript">
	function validateForm() {
	   var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	   var form = document.forms["theForm"];
	   var address = form.elements["email"].value;
	   if(reg.test(address) == false) {
	      alert('Invalid Email Address');
	      return false;
	   }
	   var newPwd = form.elements["newPwd"].value;
	   if (newPwd.length < 8 || newPwd.length > 16){
		   alert('Password must be between 8 and 16 characters');
		   return false;
	   }
		   
	}
	function 
</script>
</head>
<!--------------------------------------------------------Design part of the code---------------------------------------------->
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginheight="0" marginwidth="0" bgcolor="#000066">

<table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#000066">
  <tr>
  <td><img src="../images/jsu_banner.jpg"></td>

  </tr>
</table>

<table border="0" width="100%" bgcolor="#000000" cellspacing="0" cellpadding="0">
  <tr>
  <center><td width="100%"><font color="#FFFFFF" face="Arial" size="2"><b>D.O.R.S. Jackson State University Edition</b></font></td></center>
  <?php
  	// get J# and display it on page
	session_start();
	$JNo = $_SESSION['JNo'];
	echo "<center><td width='100%'><font color='#FFFFFF' face='Arial' size='2'><b>JSU ID: $JNo</b></font></td></center>";
  ?>
  </tr>
</table>
 
 <p align=right> 
 
  <?php
	echo "<a href = 'logout.php'><font face='Arial Black' size='5.3' color='#ffffff'><b>Logout</b></font></a>";
  ?> 
  </p>
  
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="18%" bgcolor="#000066" valign="top">&nbsp;


<!------------------------------------------End of Design-------------------------------------------------------->


<center>

<img src="../images/logo.jpg">

</center>

<form name="theForm" action="updateinfo.php" onsubmit="return validateForm()" method="post">
<center>
<table>
<tr>
<font face="Arial Black" size="5.3" color="#ffffff"><i>Deluxe Online Registration System </i></font>
</tr>
<tr>
<td> <font face="Arial Black" color="#ffffff"><b>Welcome to DORS. The system has detected that you are a new user.</b></font></td>
</tr>
<tr>
<td> <font face="Arial Black" color="#ffffff"><b> Please insert an email to continue: </b></font> </td>
<td> <input type="text" name="email" value="" > </td>
</tr>

<tr>
<td> <font face="Arial Black" color="#ffffff"><b>In addition, please update your password.</b></td>
</tr>
<tr>
<td> <font face="Arial Black" color="#ffffff"><b>Current password: </b></td>
<td> <input type="password" name="curPwd" value="" > </td>
</tr>
<tr>
<td> <font face="Arial Black" color="#ffffff"><b>New password (Make between 8-16 characters): </b></td>
<td> <input type="password" name="newPwd" value="" > </td>
</tr>
<tr>
<td></td><td> <input type="submit" value="Submit Changes"></td>
</tr>

</table>
</center>
</form>

</body>
</html>